from django.urls import path, re_path
from . import views

urlpatterns = [
    # path('login/', obtain_jwt_token)  # 当访问登录页面时直接调用获取jwt的视图函数
    re_path(r"^mobile/(?P<mobile>1[3-9]\d{9})/$", views.MobileAPIView.as_view()),
    path("login/", views.LoginAPIView.as_view(), name="login"),
    path("register/", views.UserAPIView.as_view()),
]

# obtain_jwt_token = ObtainJSONWebToken.as_view()
# 刷新token视图，依靠旧的access_token生成新的access_token
# refresh_jwt_token = RefreshJSONWebToken.as_view()
# 验证现有的access_token是否有效
# verify_jwt_token = VerifyJSONWebToken.as_view()
